package com.exercise.animations.animation

import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import com.exercise.animations.databinding.ActivityAnimationBinding
import com.exercise.struct.base.BaseActivity
import com.exercise.struct.viewmodel.BaseViewModel

class AnimationActivity : BaseActivity<BaseViewModel, ActivityAnimationBinding>() {
    override val bindingInflater: (LayoutInflater) -> ActivityAnimationBinding
        get() = ActivityAnimationBinding::inflate
    override val modelClass: Class<BaseViewModel>
        get() = BaseViewModel::class.java

    override fun initData() {
    }

    override fun initView() {
        binding.btnFIFO.setOnClickListener {
            FadeInFadeOutActivity.start(this)
        }
    }

    companion object {
        fun start(context: Context) {
            Intent(context, AnimationActivity::class.java).also {
                context.startActivity(it)
            }
        }
    }
}